﻿using System;
using System.Collections.Generic;

namespace YummyGame.Framework
{
    public class ActionBuilder_lua_script : ActionBuilder
    {
        public override SkillActionPrototype Build(SkillDescriptorField field)
        {
            SkillActionPrototype_lua_script lua = Pools.GetSkillPrototype<SkillActionPrototype_lua_script>().Get();
            lua.file = ParseString(field, SkillKeyword.effect_luascript_file);
            lua.entry = ParseString(field, SkillKeyword.effect_luascript_entry, "main");
            return lua;
        }
    }
}
